package com.ruoyi.web.tdm.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.web.tdm.mapper.TdmLiLuntMapper;
import com.ruoyi.web.tdm.domain.TdmLiLunt;
import com.ruoyi.web.tdm.service.ITdmLiLuntService;

/**
 * 色谱速率理论Service业务层处理
 * 
 * @author ly
 * @date 2022-03-11
 */
@Service
public class TdmLiLuntServiceImpl implements ITdmLiLuntService 
{
    @Autowired
    private TdmLiLuntMapper tdmLiLuntMapper;

    /**
     * 查询色谱速率理论
     * 
     * @param id 色谱速率理论主键
     * @return 色谱速率理论
     */
    @Override
    public TdmLiLunt selectTdmLiLuntById(Long id)
    {
        return tdmLiLuntMapper.selectTdmLiLuntById(id);
    }

    /**
     * 查询色谱速率理论列表
     * 
     * @param tdmLiLunt 色谱速率理论
     * @return 色谱速率理论
     */
    @Override
    public List<TdmLiLunt> selectTdmLiLuntList(TdmLiLunt tdmLiLunt)
    {
        return tdmLiLuntMapper.selectTdmLiLuntList(tdmLiLunt);
    }

    /**
     * 新增色谱速率理论
     * 
     * @param tdmLiLunt 色谱速率理论
     * @return 结果
     */
    @Override
    public int insertTdmLiLunt(TdmLiLunt tdmLiLunt)
    {
        tdmLiLunt.setCreateTime(DateUtils.getNowDate());
        return tdmLiLuntMapper.insertTdmLiLunt(tdmLiLunt);
    }

    /**
     * 修改色谱速率理论
     * 
     * @param tdmLiLunt 色谱速率理论
     * @return 结果
     */
    @Override
    public int updateTdmLiLunt(TdmLiLunt tdmLiLunt)
    {
        tdmLiLunt.setUpdateTime(DateUtils.getNowDate());
        return tdmLiLuntMapper.updateTdmLiLunt(tdmLiLunt);
    }

    /**
     * 批量删除色谱速率理论
     * 
     * @param ids 需要删除的色谱速率理论主键
     * @return 结果
     */
    @Override
    public int deleteTdmLiLuntByIds(Long[] ids)
    {
        return tdmLiLuntMapper.deleteTdmLiLuntByIds(ids);
    }

    /**
     * 删除色谱速率理论信息
     * 
     * @param id 色谱速率理论主键
     * @return 结果
     */
    @Override
    public int deleteTdmLiLuntById(Long id)
    {
        return tdmLiLuntMapper.deleteTdmLiLuntById(id);
    }
}
